/**
 * [orderFilterParam description]
 * @type {Object}
 */
(function(doc, win) {
    
    // sui 页面就绪时间退款成功
    $(doc).on("pageInit", "#refundSuccess", function() {
        var refundMoney = CommonUtil.getUrlParam("refundMoney");//退款金额
        var skWay = CommonUtil.getUrlParam("skWay");//支付方式
        if(refundMoney!='' && refundMoney!=null){
            $("#xmg_tkje").html("￥"+refundMoney);
            $("#xmg_stje").html("￥"+refundMoney);
        }

        if(skWay!=''&& skWay!=null){
            $("#xmg_zffs").html(skWay);
        }
    })


        //sui 页面就绪时间退款失败
        $(doc).on("pageInit", "#refundFailed", function() {
        var refundMoney = CommonUtil.getUrlParam("refundMoney");//退款金额
        var skWay = CommonUtil.getUrlParam("skWay");//支付方式
        var refundMassges = CommonUtil.getUrlParam("refundMassges");//失败原因
   
        if(refundMoney!='' && refundMoney!=null){
            $("#mxg_tkje").html("￥"+refundMoney);
        }

        if(skWay!=''&& skWay!=null){
            $("#mxg_zffs").html(skWay);
        }
        
        if(refundMassges!=''&& refundMassges!=null){
            $("#xmg_message").html(refundMassges);

        }
    })

    //点击完成时刷新详情页面
    $(document).on("click", "#xmg_complete", function () {
        var flag = true;
        var orderId = CommonUtil.getUrlParam("orderId");
        var orderType = CommonUtil.getUrlParam("orderType");
        var orderStatus  = CommonUtil.getUrlParam("newOrderStatus");
       $.router.load("order_details.html?orderId="+orderId+"&orderType="+orderType+"&orderStatus="+orderStatus+"&flag="+flag);
    });



})(document, window);


